<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<title>产品入库</title>
		<t:base type="jquery,easyui,tools,DatePicker,ace-style,css-layout"></t:base>
		<script src="webpage/material/productInput/productInput.js?4"></script>
		<script src="webpage/material/common/selectProduct.js?3"></script>

		<style>
.jb-button-big {
	margin: 10px;
	border: #DEDFE2 1px solid;
	background: #fff;
	-webkit-box-shadow: 2px 2px 10px #DEDFE2;
	-webkit-box-orient: vertical;
	/*safari或chrome*/
}
</style>
	</head>
	<body class="m-bg-2">
		<div m-role="cell" m-mode="y" >

			<div m-role="cell" m-align="center" style="margin-top:20px;">
				<button id="addBtn" class="btn btn-success"   onclick="addBtnClick();"><i class="icon-pencil align-top bigger-125"></i>选择产品</button>

			</div>

		</div>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password"
			layout="table" action="productInputController.do?doAdd" tiptype="3">
			<div class="jb-button-big">
				<input id="productId" name="productId.id" type="hidden">
				<table id="product" style="width: 99%; margin: 5px"
					cellpadding="5px" cellspacing="5px">
					<tr>
						<td align="right">
							<label class="Validform_label">
								产品名称:
							</label>
						</td>
						<td class="value">
							<input id="productName" name="productId.name" type="text"
								style="width: 150px" class="inputxt" >
							<span class="Validform_checktip"></span>

						</td>
						<td align="right">
							<label class="Validform_label">
								产品描述:
							</label>
						</td>
						<td class="value">
							<input id="description" name="productId.description" type="text"
								style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								产品分类:
							</label>
						</td>
						<td class="value">
							<input id="typeName" name="productId.typeThree.name" type="text"
								style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>
						<td align="right">
							<label class="Validform_label">
								产品型号:
							</label>
						</td>
						<td class="value">
							<input id="model" name="productId.model" type="text"
								style="width: 150px" class="inputxt" datatype="*">
							<span class="Validform_checktip"></span>

						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								基础成本:
							</label>
						</td>
						<td class="value">
							<input id="productBasedCost" name="productId.basedCost"
								type="text" style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>
						</td>
						<td align="right">
							<label class="Validform_label">
								附加成本:
							</label>
						</td>
						<td class="value">
							<input id="additionalCost" name="productId.additionalCost"
								type="text" style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								安装费:
							</label>
						</td>
						<td class="value">
							<input id="installCost" name="productId.installCost" type="text"
								style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>
						<td align="right">
							<label class="Validform_label">
								测量费:
							</label>
						</td>
						<td class="value">
							<input id="measureCost" name="productId.measureCost" type="text"
								style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								型号:
							</label>
						</td>
						<td class="value">
							<input id="specification" name="productId.specification"
								type="text" style="width: 150px" class="inputxt">
							<span class="Validform_checktip"></span>

						</td>


					</tr>

				</table>
			</div>
			<div m-role="line"></div>
			<div m-role="cell" m-mode="x-equal" m-padding="1 1 1 1">
				<div m-role="cell" >
					<t:dictSelect id="beforeInput" field="beforeInput" type="list"
						extendJson="{'datatype':'*'}" typeGroupCode="pInputType"
						defaultVal="${productInputPage.beforeInput}" hasLabel="true"
						title="入库类型"></t:dictSelect>
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">
						入库类型
					</label>

				</div>
				<div m-role="cell" m-mode="x">
					<label>
						入库数量:
					</label>
					<input id="inputAmount" name="inputAmount" type="text"
						style="width: 150px" class="inputxt" datatype="n">
					<span class="Validform_checktip"></span>
                    <label class="Validform_label" style="display: none;">
						入库数量
					</label>
				</div>

			</div>

		</t:formvalid>


	</body>